<template>
	<view class="review-container">
		<my-login v-if = "!userId"></my-login>
		<review-detail v-else></review-detail>
	</view>
</template>

<script>
	import { mapState } from 'vuex'

	export default {
		data() {
			return {
				wh: 0,
			};
		},
		onLoad() {
			const sysInfo = uni.getSystemInfoSync();
			this.wh = sysInfo.windowHeight;
		},
		computed: {
			...mapState('user',['userId'])
		},
	}
</script>

<style lang="scss">
page, .review-container{
	height: 100%;
}
</style>
